//
//  UIViewController+lvfjHelper.h
//  lvfj
//
//  Created by 吕飞俊 on 15/10/14.
//  Copyright © 2015年 Goudu KuaiEx Technology(Shenzhen)Co.,ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (lvfjHelper)

/**
 *  获取SB控制器
 *
 *  @param storyboardName <#storyboardName description#>
 *  @param identifier     <#identifier description#>
 *
 *  @return <#return value description#>
 */
+(UIViewController *)getStoryBoardWithStoryBoardName:(NSString *)storyboardName
                                          identifier:(NSString *)identifier;

/**
 *  获取Xib视图
 *
 *  @param nibName <#nibName description#>
 *  @param index   索引
 *
 *  @return <#return value description#>
 */
+(UIView *)getNibViewWithNibName:(NSString *)nibName
                           index:(NSInteger)index;

/**
 *  获取Xib第一个视图
 *
 *  @param nibName <#nibName description#>
 *
 *  @return <#return value description#>
 */
+(UIView *)getNibViewFirstWithNibName:(NSString *)nibName;

/**
 *  获取Xib控件
 *
 *  @param nibName <#nibName description#>
 *  @param index   <#index description#>
 *
 *  @return <#return value description#>
 */
+(id)getNibWithNibName:(NSString *)nibName
                 index:(NSInteger)index;

/**
 *  获取第一个Xib控件
 *
 *  @param nibName <#nibName description#>
 *
 *  @return <#return value description#>
 */
+(id)getNibFirstWithNibName:(NSString *)nibName;

/**将当前视图从栈中移除*/
-(void)removeCurrentCtlFromeNavCtlStack:(UIViewController *)ctl;

/**将移除最后number个视图从栈中移除并push*/
-(void)removeCtl:(NSInteger)number
fromeNavCtlStack:(UIViewController *)ctl;

/**返回上一个试图*/
-(void)dismissOrPopView:(BOOL)animation;

@end
